<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/tld/fmt.tld" prefix="fmt"%>

<table id="listEquipmentList" cellspacing="0" cellpadding="0">
	<thead>
		<tr>
			<td class="rvimscheckbox"><input type="checkbox" onclick="selectAllForList('listEquipmentList')"></td>
			<td>装备名称</td>
			<td>装备编号</td>
			<td>装备类型</td>
			<td>所属单位</td>
			<td>操作</td>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${page.results}" var="equipment">
			<tr id="objId_${equipment.id }">
				<td><input type="checkbox" name="equipmentIds" value="<c:out value='${equipment.id}'/>"></td>
				<td><c:out value="${equipment.equipmentName}"/></td>
				<td><c:out value="${equipment.equipmentCode}"/></td>
				<td><c:out value="${equipment.equipmentType}"/></td>
				<td><c:out value="${equipment.ownedOrganization}"/></td>
				<td class="rvimsoperation">
				<a href="javascript:ajaxShowEquipmentView('${equipment.id}')" title="详细信息"><span class="ui-icon ui-icon-document"></span></a>
				<a href="javascript:ajaxShowEquipmentEdit('${equipment.id}')" title="修改"><span class="ui-icon ui-icon-pencil"></span></a>
				<a href="javascript:ajaxDeleteEquipmentById('${equipment.id}')" title="删除"><span class="ui-icon ui-icon-trash"></span></a>
			</td>
			</tr>
		</c:forEach>
		<tr>
			<td><input type="checkbox" name="equipmentIds" value="1"></td>
			<td>测试数据1</td>
			<td>测试数据1</td>
			<td>测试数据1</td>
			<td>测试数据1</td>
			<td class="rvimsoperation">
					<a href="javascript:ajaxShowEquipmentView('1')" title="详细信息"><span class="ui-icon ui-icon-document"></span></a> 
					<a href="javascript:ajaxShowEquipmentEdit('1')" title="修改"><span class="ui-icon ui-icon-pencil"></span></a> 
					<a href="javascript:ajaxDeleteEquipmentById('1')" title="删除"><span class="ui-icon ui-icon-trash"></span></a>
				</td>
		</tr>
		<tr>
			<td><input type="checkbox" name="equipmentIds" value="2"></td>
			<td>测试数据2</td>
			<td>测试数据2</td>
			<td>测试数据2</td>
			<td>测试数据2</td>
				<td class="rvimsoperation">
					<a href="javascript:ajaxShowEquipmentView('2')" title="详细信息"><span class="ui-icon ui-icon-document"></span></a> 
					<a href="javascript:ajaxShowEquipmentEdit('2')" title="修改"><span class="ui-icon ui-icon-pencil"></span></a> 
					<a href="javascript:ajaxDeleteEquipmentById('2')" title="删除"><span class="ui-icon ui-icon-trash"></span></a>
				</td>
		</tr>
	</tbody>
</table>
<div id="rvimsPaginationPanel"></div>
<script type="text/javascript">
	setTableCSS("listEquipmentList");
	setPagination("rvimsPaginationPanel","${page.totalPageCount}","${page.pageNum}","${page.pageSize}","${page.totalCount}",ajaxFindEquipmentSearchList);
</script>